require('./assets/css/iconfont.css');
require('./assets/css/layout.css');
window.Vue = require('vue');
window.$ = require('jquery');
var Plugin = require('./plugin');
$.each(Plugin,function(key,val){
	Vue.component(val.name, require('./views/component/'+val.tpl));
});
new Vue({
	el: '#ind'
})
require('./views/js/wxlogin');
//与原生应用交互
require('./config');
window.VIE = require('./vie');
window.JSONLIST = require('./listSet');
window.REG = require('./reg');
//打开全局调试
var VueRouter = require('vue-router');
Vue.use(VueRouter);
//var fastclick = require('fastclick');
//fastclick.attach(document.body);
var App = Vue.extend(require('./App.vue'));
var router = new VueRouter(
	{
	   hashbang: false,  //为true的时候 example.com/#!/foo/bar ， false的时候 example.com/#/foo/bar
	   //abstract:true,  //地址栏不会有变化
	   //以下设置需要服务端设置
	   //history: false,   //当使用 HTML5 history 模式时，服务器需要被正确配置 以防用户在直接访问链接时会遇到404页面。
	   //saveScrollPosition: false
	   linkActiveClass:'custom-active-class' //全局设置连接匹配时的类名 参考http://vuejs.github.io/vue-router/en/link.html
	}
);
require('./routers')(router);
window.router = router;

router.start(App, '#app');

